package com.iqiyi.pps.epg.core.model.channel;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by xuzengqiang on 2014/12/1.
 */
@Entity
@Table(name = "channel_tag")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class ChannelTag {

    private Long id;
    private Long fatherId;

    private Long tag1;
    private Long tag2;
    private Timestamp addTime = new Timestamp(System.currentTimeMillis());;
    private Timestamp updateTime = new Timestamp(System.currentTimeMillis());;


    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    @Column(name = "father_id")
    public Long getFatherId() {
        return fatherId;
    }

    public void setFatherId(Long fatherId) {
        this.fatherId = fatherId;
    }

    public Long getTag1() {
        return tag1;
    }

    public void setTag1(Long tag1) {
        this.tag1 = tag1;
    }

    public Long getTag2() {
        return tag2;
    }

    public void setTag2(Long tag2) {
        this.tag2 = tag2;
    }

    @Column(name = "add_time")

    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }
    @Column(name = "update_time")
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

}
